# -pedantic  -pedantic-errors
OPT := -ansi  -std=c++11 \
    -W -Wall -Wno-unused-parameter  -pthread \
	-Wno-variadic-macros -DMS_LITTLE_ENDIAN
	
# -L/usr/local/lib 
OPTION := $(OPT)  \
	-lHiUDPSocket -lHiRTPDecoder -lgtest -lgtest_main -luv \
	-lHiRTPCommon -lHiRTPParser -lHiUDPSocket -lHiRTPCodec  \
	-lHiRTPPic \
	-lavcodec -lswscale -lswresample -lavutil -lx264 -lvpx \
	-liconv  -lopus -lm -lz  \
	-Iinclude/gtest -I/usr/include  -I../include/common  -I../include/common/share -I../include \
	-L../libs/common -L../libs/common/ffmpeg -L../libs/common/ffmpeg/extend -L../libs -L/usr/lib \
	-g
	

.cpp.o:
	g++ -c $< $(OPTION)

export LD_LIBRARY_PATH=../libs:../libs/common:../libs/common/ffmpeg:$LD_LIBRARY_PATH
all: clean   HiRTPParserTest.o ReadRTPFromFile.o HiRTPDecordeTest.o CommonUtil.o HiRTPPicTest.o HiShareMemoryTest.o
	g++ -o  test *.o $(OPTION) 
	rm -f *.o

clean:
	rm -f *.o

